package com.mlj.dao;

import com.mlj.pojo.Admin;
import com.mlj.pojo.Apartment;
import com.mlj.pojo.Student;

import java.util.List;
import java.util.Map;

public interface ApartmentMapper {
    int deleteByPrimaryKey(Integer apartmentId);

    int insert(Apartment record);

    Apartment selectByPrimaryKey(Integer apartmentId);

    List<Apartment> selectAll();

    int updateByPrimaryKey(Apartment record);

    List<Student> findApartmentListByPage(Integer start, Integer limit);

    Integer selectCount();

    void deleteBatch(Integer[] ids);

    void delApartmentById(Integer id);

    void insertApartment(Apartment apartment);

    List<Admin> searchApartmentByKw(Map<String, Object> paraMaps);

    Integer searchCountByKw(Map<String, Object> paraMaps);
}